/*
	Copyright (c) 2009-2011, Stefan Webb.

	This file is part of SimpleML. Please read the file "license.txt", 
	which contains the conditions under which this software is distributed.
*/

/*!
	\file agent.cpp
	\author Stefan Webb
	\brief Definition of Agent class members
*/

#include "stdafx.h"

/* Default Constructor. */
Agent::Agent()
{
	// Set state to default of false, i.e., unready.
	setState(false);
}

/* Determine if agent is ready to receive communication. */
bool Agent::isReady()
{
	// Return state
	return getState();
}

// *** Start from here 11/7/2011 ***
void Agent::makeReady()
{
	setState(true);
}

void Agent::makeUnready()
{
	setState(false);
}